import axios from 'axios'
import { post } from '@/api/http.js'
function resetUserPassword(params) {
  const a = {
    method: 'ResetPassword_Mod',
    userId: window.userId || 1,
    sign: '1',
    currentPage: 0,
    limit: 0,
    datas: {
      NTID: params.NTID,
    },
  }
  return post(a)
}

function getUserInfoById(id) {
  const a = {
    method: 'SysUser_Que',
    userId: window.userId || 1,
    sign: '1',
    currentPage: 0,
    limit: 0,
    datas: {
      NTID: id,
    },
  }
  return post(a)
}

// 用户登录
function userLogin(data) {
  const a = {
    method: 'SysUser_Login',
    userId: window.userId || 1,
    sign: '1',
    currentPage: 0,
    limit: 0,
    datas: data,
  }
  return post(a)
}
export default {
  resetUserPassword,
  getUserInfoById,
  userLogin,
}
